//
// Created on 2025/9/9.
//
// Node APIs are not fully supported. To solve the compilation error of the interface cannot be found,
// please include "napi/native_api.h".

#ifndef ANIMAL_H
#define ANIMAL_H

#include <string>
#include <iostream>

class Animal {
protected:
    std::string name;
    std::string color;
    int legNum;

public:
    // 有参构造函数
    Animal(std::string name, std::string color, int legNum);

    // set 和 get 方法
    void setName(std::string name);
    std::string getName() const;

    void setColor(std::string color);
    std::string getColor() const;

    void setLegNum(int legNum);
    int getLegNum() const;

    // 介绍自己的方法
    virtual void introduce() const;
};

#endif